//
//  CHLeftCell.m
//  CarFile
//
//  Created by 陈浩 on 2017/7/10.
//  Copyright © 2017年 陈浩. All rights reserved.
//

#import "CHLeftCell.h"
@interface CHLeftCell ()

@property (nonatomic ,strong) UILabel *titleLabel;
@end

@implementation CHLeftCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

+(instancetype)cellForTableView:(UITableView *)tableView{
    
    static NSString *ID = @"CHLeftCell";
    
    CHLeftCell *cell = [tableView dequeueReusableCellWithIdentifier:ID];
    if (!cell) {
        cell = [[CHLeftCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:ID];
    }
    return cell;
    
}

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.backgroundColor = KRGB(249, 249, 249);
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        [self setupUI];
    }
    return self;
    
    
}



-(void)setupUI{
    
    UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 80, 44)];
    label.text = @"萧山区";
    label.font = [UIFont systemFontOfSize:14];
    label.textAlignment = NSTextAlignmentCenter;
    [self addSubview:label];
    self.titleLabel = label;
    
//    UIView *line = [[UIView alloc] initWithFrame:CGRectMake(0, self.h-1, self.w, 1)];
//    line.backgroundColor = [UIColor colorWithHexString:@"999999" alpha:0.3f];
//    [self addSubview:line];
    
    
    
}


-(void)setModel:(DJ_Model *)model{
    _model = model;
    
    self.titleLabel.text = model.areacn;
    
    
    
    
}

@end
